package com.example.schedule.Mapper;

import com.example.schedule.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
public interface LoginMapper {


    /**
     * 登陆
     * @param username
     * @param password
     * @return
     */
    User login(@Param("username") String username, @Param("password") String password);


    /**
     * 注册
     * @param user
     */
    void add(User user);

}
